package com.irilya.youtubeevents.gwt.client;

import com.irilya.youtubeevents.gwt.client.model.YouTubePlayer;

public class YouTubeEventsContext {

    private YouTubePlayerHandler youTubePlayerHandler;
    private YouTubeEventHandler youTubeEventHandler;

    private YouTubePlayer player;

    public YouTubeEventsContext() {

        this.player = new YouTubePlayer();
        this.youTubePlayerHandler = new YouTubePlayerHandler(this);
        this.youTubeEventHandler = new YouTubeEventHandler(this);
    }

    public YouTubePlayer getYouTubePlayer() {
        return this.player;
    }

    public YouTubePlayerHandler getYouTubePlayerHandler() {
        return this.youTubePlayerHandler;
    }

    public YouTubeEventHandler getYouTubeEventHandler() {
        return this.youTubeEventHandler;
    }
}
